package com.woniu.orderservice.controller;

import com.woniu.orderservice.entity.Orderinfos;
import com.woniu.orderservice.service.OrderinfosService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("orderinfos")
public class OrderinfosController {
    @Resource
    private OrderinfosService orderinfosService;

    @GetMapping("selectOne")
    public Orderinfos selectOne(Integer id) {
        return orderinfosService.queryById(id);
    }

}